import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/device/list',
    method: 'post',
    data: query
  })
}

export function resetDevice(query) {
  return request({
    url: '/device/resetDevice',
    method: 'post',
    data: query
  })
}


export function fetchFaultTypeList(query) {
  return request({
    url: '/devicefaulttype/list',
    method: 'post',
    data: query
  })
}


export function addFaultType(query) {
  return request({
    url: '/devicefaulttype/add',
    method: 'post',
    data: query
  })
}


export function modifyFaultType(query) {
  return request({
    url: '/devicefaulttype/modify',
    method: 'post',
    data: query
  })
}


export function deleteFaultType(query) {
  return request({
    url: '/devicefaulttype/delete',
    method: 'post',
    data: query
  })
}


export function fetchDeviceRepairs(query) {
  return request({
    url: '/device/listDeviceRepairs',
    method: 'post',
    data: query
  })
}


export function responseDeviceRepair(query) {
  return request({
    url: '/device/responseDeviceRepair',
    method: 'post',
    data: query
  })
}


export function deleteDeviceRepair(query) {
  return request({
    url: '/device/deleteDeviceRepair',
    method: 'post',
    data: query
  })
}
